﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Activate : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
       string act_code=Request.Params["act_code"].ToString();

       cmpUser act_user = new cmpUser();
       
       bool result=act_user.activate_user(act_code);

       if (result)
       {
           Label1.Text = "Sucessfully activated! Now you can logon from main page";
       }
       else
       {
           Label1.Text = "Error occured. Try again later."; 
       }
    }
}